<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>项目路径</title>
</head>
<body>

<script th:inline="javascript" th:fragment="baseUrl">
    baseUrl=[[@{/}]];
</script>

</body>
</html>